#-------------------------------------------------
#
# Project created by QtCreator 2014-03-04T11:00:26
#
#-------------------------------------------------

QT       += core widgets

TARGET = pluginui
TEMPLATE = lib

include(../includes.pri)
include(../installs.pri)

TRANSLATIONS += lang/pluginui.zh_CN.ts

DEFINES += PLUGINUI_LIBRARY

SOURCES += \
    manager/AbstractMenuManager.cpp \
    manager/AbstractPanelManager.cpp \
    manager/AbstractStatusBarManager.cpp \
    manager/AbstractToolBarManager.cpp \
    manager/ConfigPanelManager.cpp \
    manager/spi/StandardContentPanelManager.cpp \
    manager/spi/StandardDockPanelManager.cpp \
    manager/spi/StandardMenuManager.cpp \
    manager/spi/StandardStatusBarManager.cpp \
    manager/spi/StandardToolBarManager.cpp \
    plugin/GuiPlugin.cpp \
    widget/ConfigDialog.cpp \
    widget/ConfigPanel.cpp \
    widget/SplashScreen.cpp \
    widget/StandardAboutDialog.cpp \
    widget/StandardPluginListDialog.cpp \
    widget/UpdateSiteInputDialog.cpp \
    manager/PanelItem.cpp \
    manager/AbstractPanelContainer.cpp \
    manager/AbstractPanelContainerFactory.cpp \
    manager/spi/TabPanelContainerFactory.cpp \
    manager/spi/SinglePanelContainerFactory.cpp \
    manager/spi/HorizontalLayoutPanelContainerFactory.cpp \
    manager/spi/VerticalLayoutPanelContainerFactory.cpp \
    manager/spi/StandardDialogContentPanelManager.cpp \
    widget/StandardSystemTrayDialog.cpp \
    widget/StandardMainDialog.cpp \
    widget/StandardMainWindow.cpp \
    extension/AbstractExtension.cpp \
    extension/StandardMainDialogExtension.cpp \
    extension/StandardMainWindowExtension.cpp \
    activator/GuiPluginActivator.cpp \
    manager/spi/StandardSystemTrayMenuManager.cpp

HEADERS +=\
        pluginui_global.h \
    manager/AbstractMenuManager.h \
    manager/AbstractPanelManager.h \
    manager/AbstractStatusBarManager.h \
    manager/AbstractToolBarManager.h \
    manager/ConfigPanelManager.h \
    manager/spi/StandardContentPanelManager.h \
    manager/spi/StandardDockPanelManager.h \
    manager/spi/StandardMenuManager.h \
    manager/spi/StandardStatusBarManager.h \
    manager/spi/StandardToolBarManager.h \
    plugin/GuiPlugin.h \
    widget/ConfigDialog.h \
    widget/ConfigPanel.h \
    widget/SplashScreen.h \
    widget/StandardAboutDialog.h \
    widget/StandardPluginListDialog.h \
    widget/UpdateSiteInputDialog.h \
    manager/AbstractPanelContainer.h \
    manager/PanelItem.h \
    manager/AbstractPanelContainerFactory.h \
    manager/spi/TabPanelContainerFactory.h \
    manager/spi/SinglePanelContainerFactory.h \
    manager/spi/HorizontalLayoutPanelContainerFactory.h \
    manager/spi/VerticalLayoutPanelContainerFactory.h \
    manager/spi/StandardDialogContentPanelManager.h \
    widget/StandardSystemTrayDialog.h \
    widget/StandardMainDialog.h \
    widget/StandardMainWindow.h \
    extension/AbstractExtension.h \
    extension/StandardMainDialogExtension.h \
    extension/StandardMainWindowExtension.h \
    activator/GuiPluginActivator.h \
    manager/spi/StandardSystemTrayMenuManager.h

unix {
    target.path = /usr/lib
    INSTALLS += target
}

win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../plugin/release/ -lplugin
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../plugin/debug/ -lplugin
else:unix: LIBS += -L$$OUT_PWD/../plugin/ -lplugin

INCLUDEPATH += $$PWD/../

win32:CONFIG(release, debug|release): LIBS += -L$$OUT_PWD/../wwWidgets/release/ -lwwWidgets
else:win32:CONFIG(debug, debug|release): LIBS += -L$$OUT_PWD/../wwWidgets/debug/ -lwwWidgets
else:unix: LIBS += -L$$OUT_PWD/../wwWidgets/ -lwwWidgets

INCLUDEPATH += $$PWD/../wwWidgets
DEPENDPATH += $$PWD/../wwWidgets

OTHER_FILES += \
    images/ais.jpg \
    images/about.png \
    images/plugin_list.png \
    images/startup.png \
    lang/pluginui.zh_CN.qm \
    lang/pluginui.zh_CN.ts \
    images/heart.png

FORMS += \
    widget/StandardPluginListDialog.ui

RESOURCES += \
    pluginui.qrc
